package com._21cn.cms.site.dao.mybatis;

import com._21cn.cms.site.dao.RegionDao;
import com._21cn.cms.site.entity.Region;
import com._21cn.framework.base.db.mybatis.BaseDaoMybatis;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Repository;

@Repository("regionDao")
public class RegionDaoMybatis extends BaseDaoMybatis<Region> implements RegionDao {

    public RegionDaoMybatis() {
        super();
        setNameSpace( "t_cms_region" );
    }

    @Required
    @Autowired
    @Qualifier("sqlSessionFactory")
    public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {
        super.setSqlSessionFactory( sqlSessionFactory );
    }

}